package com.tecklab.demo.utils;

import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;

/**
 * @Deacription TODO
 * @Author sunking
 * @Date 2023/4/18} 下午7:19
 **/
public class StringUtilsDemo {
    public static void main(String[] args) {
        String url = "https://www.cnblogs.com/geektcp/p/11180441.html";
        url = StringUtils.substringAfter(url ,"https://");
        System.out.println(url);

        String str = "a";
        System.out.println(StringUtils.split(str, "-")[0]);

        BigDecimal a = new BigDecimal(9);
        BigDecimal b = new BigDecimal(7);
        BigDecimal c = a.subtract(b);
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(new BigDecimal(11).multiply(a).divide(b, 4, BigDecimal.ROUND_HALF_UP));

    }
}
